package com.chinacoal.microservice.api.model.resource;

import java.util.ArrayList;
import java.util.HashMap;

public class FormCanvasData extends CanvasData {

	public FormCanvasData(){
		this.type = "form";
	}
	
	public FormCanvasData add(String name,String value){
		if(data == null){
			this.data = new ArrayList<Object>();
		}
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("name", name);
		map.put("value", value);
		this.data.add(map);
		return this;
		
	}
}
